import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
// ==================系统管理=========================
import TenantType from "./views/sysmanage/TenantType";
import Tenant from "./views/sysmanage/Tenant";
import TenantRegister from "./views/sysmanage/TenantRegister";

// ==================系统管理=========================

// ==================产品管理=========================
import Product from "./views/promanager/Product";
import ProductType from "./views/promanager/ProductType";
// ==================产品管理=========================

// ==================营销管理=========================
import Activity from "./views/marketing/Activity";
import ActivityRemark from "./views/marketing/ActivityRemark";
import Clue from "./views/marketing/Clue";
import ClueActivity from "./views/marketing/ClueActivity";
import ClueRemark from "./views/marketing/ClueRemark";
// ==================活动管理=========================

// ==================组织管理=========================
import Department from './views/orgs/Department.vue'
import Employee from "./views/orgs/Employee";
import Shop from "./views/orgs/Shop";
import Settled from "./views/Settled";
// ==================组织管理=========================
// ==================车辆模型=========================
import CarType from "./views/car/CarType";
import Car from "./views/car/Car";
// ==================车辆模型=========================

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/goSettled',
        component: TenantRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-bar-chart',
        leaf: true,
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '系统中心管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/config', component: Department, name: '系统配置'},
            { path: '/department', component: Department, name: '部门管理'},
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/meal', component: Employee, name: '套餐管理' },
            { path: '/tenant', component: Tenant, name: '租户管理' },
            { path: '/tenantType', component: TenantType, name: '租户类型管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '授权中心管理',
        iconCls: 'fa fa-id-card-o',
        children: [
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;